﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MasterCreate.aspx.cs" Inherits="Admin_MasterCreate" %>
<%@ Import Namespace="Portal.Core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head1" runat="server">
        <title>Coppy Page</title>    
    </head>
    <body>
    
        <form id="form1" runat="server">
    
            <b>Sao chép nguyên mẫu category:</b><br />
            <table cellpadding="0" cellspacing="0" style="border: solid 1px red">
                <tr valign="top">
                    <td style="padding: 10px; width: 200px;">
                        <strong>
                            Category mẫu</strong><br />
                        <asp:DropDownList runat="server" ID="Cat1From" DataTextField="DisplayNameFullName" DataValueField="Id" Width="190px"></asp:DropDownList>                                                
                    </td>
                    <td style="padding: 10px;" valign="middle">
                        <img src="<%=CoreContext.absStaticFile%>Themes/Images/next.jpg" alt=""/>
                    </td>
                    <td style="padding: 10px;">   
                        <strong>
                            Category đích</strong><br />
                        <asp:ListBox runat="server" ID="Cat1To" DataTextField="DisplayNameFullName" DataValueField="Id" 
                                     SelectionMode="Multiple" Height="150" Rows="10" Width="250px"></asp:ListBox>
                    </td>
                    <td style="padding: 10px;">   
                        <strong>và các
                            Web Page đích</strong><br />
                        <asp:ListBox runat="server" ID="WebPage1To" DataTextField="Title" DataValueField="Id" 
                                     SelectionMode="Multiple" Rows="5" Width="150px"></asp:ListBox>
                    </td>
                    <td valign="top" style="padding: 10px;">
                        <br />
                        <asp:Button ID="btnSubmit1" runat="server" Text="Chấp nhận" OnClick="btnSubmit1_Click" />
                    </td>
                </tr>
            </table> 
            <br />
            <b>Hoặc chỉ lấy một vài module từ trang này sang trang khác:</b>
            <br />
            <table cellpadding="0" cellspacing="0" style="border: solid 1px red">
                <tr valign="top">
                    <td style="padding: 10px; width: 200px;">   
                        <asp:HiddenField runat="server" ID="hdLayoutIDparent" />
                        <strong>Chọn category nguồn</strong><br /><asp:DropDownList runat="server" ID="Cat2from" DataTextField="DisplayNameFullName" DataValueField="Id" Width="190px">
                                                                  </asp:DropDownList><br />
                        <br />
                        <strong>Chọn kiểu trang<br />
                        </strong>
                        <asp:DropDownList runat="server" ID="ddlWpp" Width="190px">
                            <asp:ListItem Value="0">List Page (trang hiển thị)</asp:ListItem>
                            <asp:ListItem Value="1">Detail Page (trang chi tiết)</asp:ListItem>
                        </asp:DropDownList><br />
                        <br />
                        <asp:Button ID="btnPick2" runat="server" Text="Chọn" OnClick="btnPick2_Click" Width="90px" /></td>
        
                    <td style="padding: 10px;">
                        <strong>Chọn các module<br />
                        </strong>
                        <asp:ListBox runat="server" ID="listWebparst" DataTextField="Name" DataValueField="Id" 
                                     SelectionMode="Multiple" Rows="10"></asp:ListBox>                        
                        <br />
                        <asp:Button OnClientClick="return Confirm('Chắc chắn xóa các module này không?')" ID="btnDeleteWp" runat="server" Text="Xóa module" Width="90px" ToolTip="Xóa các module đã chọn trong trang đó" ForeColor="Red" OnClick="btnDeleteWp_Click" /></td>            
                    <td valign="middle" style="padding-right: 10px; padding-left: 10px; padding-bottom: 10px; padding-top: 10px">
                        <img src="<%=CoreContext.absStaticFile%>Themes/Images/next.jpg" alt=""/>
                    </td>
                    <td style="padding: 10px;">
                        <strong>Chọn các category đích<br />
                            <asp:ListBox runat="server" ID="Cat2To" DataTextField="DisplayNameFullName" DataValueField="Id" 
                                         SelectionMode="Multiple" Rows="10"></asp:ListBox>
                            <br />
                            <strong>Và các Web Page đích<br />
                                <asp:ListBox runat="server" ID="WebPage2To" DataTextField="Title" DataValueField="Id" 
                                             SelectionMode="Multiple" Rows="4" Width="250px"></asp:ListBox>
                                <br />
                                Chọn kiểu trang<br />
                                <asp:DropDownList runat="server" ID="WppTo" Width="190px">
                                    <asp:ListItem Value="-1">Tất cả</asp:ListItem>
                                    <asp:ListItem Value="0">List Page (trang hiển thị)</asp:ListItem>
                                    <asp:ListItem Value="1">Detail Page (trang chi tiết)</asp:ListItem>
                                </asp:DropDownList><br />
                                <asp:CheckBox ID="cbDeleteOld" runat="server" Checked="True" Text="Xóa module cũ ở cùng vị trí" /></strong><br />
                            <asp:CheckBox ID="cbSetLayout" runat="server" Checked="false" Text="Chọn layout của trang gốc cho trang đích" /></strong>
                    </td>
                    <td style="padding: 10px;">
                        <br />
                        <asp:Button ID="btnSubmit2" runat="server" Text="Chấp nhận" OnClick="btnSubmit2_Click" />
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>